package com.code.cheney.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import com.code.cheney.dao.IUserDao;
import com.code.cheney.po.UserInfo;
import com.code.cheney.service.IUserService;

/**   
 *    
 * Project: ssh_Maven   
 * Class: IUserService   
 * Description: 
 * @author: Cheney   
 * @Date 2016年4月9日 下午1:59:17
 * @version 1.0
 *    
 */
@Component
public class UserService implements IUserService {
	
	@Autowired
	private IUserDao userDao;
	
	public void service(UserInfo ui){
		userDao.insert(ui);
	}

	@Override
	public List<UserInfo> query() {
		return userDao.query();
	}

	@Override
	public UserInfo get(int id) {
		return userDao.get(id);
	}

	@Override
	public void test() {
		System.out.println("test method");
	}
}
